﻿using ERPPublic;
using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ProductionManagement.Domain.ProductionDomain
{
    /// <summary>
    /// 生产派工产品关联表
    /// </summary>
    /// 
    [SugarTable("DispatchProduct")]
    public class DispatchProduct: Audit
    {
        // 生产派工产品id
        [SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
        public int DispatchProductId { get; set; }

        /// <summary>
        /// 生产派工id
        /// </summary>
        public string? DNumber { get; set; }
        /// <summary>
        /// 产品id
        /// </summary>
        public int? ProductId { get; set; }
        public string? PName { get; set; }
        public string? PNumber { get; set; }
        public string? PSpec { get; set; }
        public string? PUnit { get; set; }
        /// <summary>
        /// 订单数量
        /// </summary>
        public int? OrderNum { get; set; }

        // 本次派工数量
        public int? DThisNum { get; set; }

        // 计划开工日期
        public DateTime? DPStartDate { get; set; }

        // 计划完工日期
        public DateTime? DPEndDate { get; set; }

        // 交货日期
        public DateTime? DDeliveryDate { get; set; }
    }
}
